﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Scap.Info
{
    public class ScapEmployeeAssistanceCollection : List<ScapEmployeeAssistance>
    {

    }

    public class ScapEmployeeAssistance
    {
        public int Id { get; set; }

        public int EmployeeId { get; set; }
        [ForeignKey("EmployeeId")]
        public ScapEmployee Employee { get; set; }

        public int DeviceId { get; set; }
        [ForeignKey("DeviceId")]
        public ScapDevice Device { get; set; }

        public DateTime CheckTime { get; set; }

        public ScapAssistenceType Type { get; set; }

        public int WorkCode { get; set; }
    }



    public enum ScapAssistenceType
    {
        CheckIn,
        CheckOut
    }
}
